package anims.XXgt.anim;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;

import javax.swing.JPanel;

public class MainPanel extends JPanel {
	private int canvasWidth;
	private int canvasHeight;
	IDrawObject ball1;
	IDrawObject background;
	private DrawCanvas canvas;
	
	Animation anim;
	public MainPanel(int width, int height) {
		final int controlHeight = 30;
		canvasWidth = width;
		canvasHeight = height - controlHeight;
		ball1 = new GCircle(0, 0, 0, 0, 5, 30, 20);
		background = new BackGround(0, 0, 640, 480);
		canvas = new DrawCanvas();
		this.setLayout(new BorderLayout());
		this.add(canvas, BorderLayout.CENTER);
		
//		anim=new Animation(, canvas);
//		startAnim();
	}









}
